package com.example.lib_storage

import com.example.lib_storage.mmkv.MMKVOwner
import com.example.lib_storage.mmkv.MMKVProperty
import com.tencent.mmkv.MMKV

/**
 * @author yaotianxue
 * @description
 * @date 2025/1/14
 */
object AppMMKV:MMKVOwner {
    /**
     * 存储在app文件中
     */
    override val mmkv: MMKV
        get() = MMKV.mmkvWithID(MMKVConfig.ID.APP)

    //用户协议隐私政策是否同意
    var splashAgreement by MMKVProperty(false)
    //是否需要走引导页
    var needGuide by MMKVProperty(true)
    //记录启动时间
    var lastLaunchTime by MMKVProperty(0L)
    //记录当前版本号
    var lastVersionCode by MMKVProperty(0L)

}